import * as PIXI from "pixi.js";
// import {PixiApp} from '@/pixi/App'

import piniaInJs from '@/store/pixi'
import {storeToRefs} from "pinia";
import  {usePixiStore}  from '@/store/pixi'
let store = usePixiStore(piniaInJs)
store.changeCurrentWidth()
store.changeCurrentHeight()
let {currentWidth,currentHeight } = storeToRefs(store)

// let pixiApp = PixiApp.init()
// 创建 容器
let container = new PIXI.Container();

container.x = currentWidth.value/2;
container.y = currentHeight.value/2;

// container.x = pixiApp.app.screen.width/2;
// container.y = pixiApp.app.screen.height/2;

container.pivot.set(0.5, 0.5);
// container.interactive = true;
container.eventMode = 'static';

// pixiApp.app.stage.addChild(container);

export {
    container
}
